import request from '@/utils/request'
import httpRequest from '@/utils/httpRequest'
// 查询工艺下工序明细列表
export function listDetial(query) {
  return httpRequest({
    url: httpRequest.adornUrl('/gy/detial/list'),
    method: 'get',
    params: query
  })
}

// 查询工艺下工序明细详细
export function getDetial(id) {
  return request({
    url: '/gy/detial/' + id,
    method: 'get'
  })
}

// 新增工艺下工序明细
export function addDetial(data) {
  return request({
    url: '/gy/detial',
    method: 'post',
    data: data
  })
}

// 修改工艺下工序明细
export function updateDetial(data) {
  return request({
    url: '/gy/detial',
    method: 'put',
    data: data
  })
}

// 删除工艺下工序明细
export function delDetial(id) {
  return request({
    url: '/gy/detial/' + id,
    method: 'delete'
  })
}
